

<div class="inner form-login" >
	<div id="home">
		<div class="main">
			<div class="container-input">
				<form action="/siteadmin/channel.php?p=add_aboutc" method="POST" enctype="multipart/form-data">
					

				  <fieldset>
<?php
	
	if(!empty($_POST)) {

		addAboutChannel($_POST);

	}
?>

					<legend>Add About Channel</legend>
						<div class="control-group">
							<label class="control-label" for="inputEmail">Title</label>
							<div class="controls">
								<textarea type="text"  name="title" id="inputIcon" value="" placeholder="Embled code" style="margin:12px;" rows="10" cols="50"> 
									<?php echo !empty($_POST['title']) ? $_POST['title'] : "" ;?>
								</textarea>
							</div>
						</div>

						<div class="control-group">
							<label class="control-label" for="inputEmail">About</label>
							<div class="controls">
								<textarea type="text"  name="about" id="inputIcon" value="" placeholder="Embled code" style="margin:12px;" rows="10" cols="50"> 
									<?php echo !empty($_POST['about']) ? $_POST['about'] : "" ;?>
								</textarea>
							</div>
						</div>						
						<div class="control-group">
							<label class="control-label" for="inputEmail">Description</label>
							<div class="controls">
								<textarea type="text"  name="des" id="inputIcon" value="" placeholder="Embled code" style="margin:12px;" rows="10" cols="50"> 
									<?php echo !empty($_POST['des']) ? $_POST['des'] : "" ;?>
								</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="inputEmail">Category </label>
							<div class="controls">
								<select name="category_id" style="height:30px; margin:12px">
								<?php
								echo "<option value='0'>...</option>";
								global $db;
								$rows = listCategory('created desc');
					
								while ($record= $db->fetch_array($rows)) {
									echo "<option value='".$record['id']."'>".$record['name']."</option>";
								}
								?>
								</select>
							</div>
						</div>						
						
						<div class="control-group">
							<label class="control-label" for="inputEmail">Type </label>
							<div class="controls">
								<select name="icon" style="height:30px; margin:12px">
								<?php
								global $db;
								$rows = listType();
					
								while ($record= $db->fetch_array($rows)) {
									echo "<option value='".$record['image']."'>".$record['name']."</option>";
								}
								?>
								</select>
							</div>
						</div>
						<div class="control-label">
							&nbsp;
						</div>
						<div class="controls">
							<button type="submit" class="btn">Submit</button>
						</div>
				  </fieldset>
				</form>
			</div>
		</div>
	</div>
</div>







